]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
js: Adjust to proxy wrapper change
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 19 Jul 2026 10:26:34 +0000 (12:26 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 2 Aug 2026 16:50:33 +0000 (18:50 +0200)
Gio.DBus.makeProxyWrapper() now returns a Gio.DBusProxy subclass
rather than a function (that returns a proxy object).

That means it must now be invoked with `new`, so adjust the couple
of places where we weren't doing that already.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4293>
(cherry picked from commit 7d8ff6b63ba908546e04d464cdd4681e125e5b12)

js/gdm/authPrompt.js
js/gdm/realmd.js
js/misc/timeLimitsManager.js

index c01c6fe2e6c045c9ba61ab5430ffc42918157ba3..2c6c616279b8f6cb5e6b8e12f7602f41b1054ecb 100644 (file)
@@ -37,7 +37,7 @@ class ParentalControlsShield extends St.BoxLayout {
 
         this._requestExtensionCookie = null;
 
-        this._timerChildProxy = TimerChildProxy(Gio.DBus.system,
+        this._timerChildProxy = new TimerChildProxy(Gio.DBus.system,
             'org.freedesktop.MalcontentTimer1',
             '/org/freedesktop/MalcontentTimer1',
             (proxy, error) => {
index f2faf4ab59632dc74b4d3e6e33b1991c4aadb910..04400d7ca093edcadbd06abc8a9c2b64c28e33da 100644 (file)
@@ -16,7 +16,7 @@ export class Manager extends Signals.EventEmitter {
     constructor() {
         super();
 
-        this._aggregateProvider = Provider(Gio.DBus.system,
+        this._aggregateProvider = new Provider(Gio.DBus.system,
             'org.freedesktop.realmd',
             '/org/freedesktop/realmd',
             this._reloadRealms.bind(this));
@@ -38,7 +38,7 @@ export class Manager extends Signals.EventEmitter {
             return;
 
         for (let i = 0; i < realmPaths.length; i++) {
-            Realm(Gio.DBus.system,
+            new Realm(Gio.DBus.system,
                 'org.freedesktop.realmd',
                 realmPaths[i],
                 this._onRealmLoaded.bind(this));
@@ -98,7 +98,7 @@ export class Manager extends Signals.EventEmitter {
     }
 
     release() {
-        Service(Gio.DBus.system,
+        new Service(Gio.DBus.system,
             'org.freedesktop.realmd',
             '/org/freedesktop/realmd',
             service => service.ReleaseAsync().catch(logError));
index f980477bc82a535737501afba8583486bb6d30da..8b10190ec6a2fc3f0612a28c25272c296d02e029 100644 (file)
@@ -185,7 +185,7 @@ export const TimeLimitsManager = GObject.registerClass({
         this._estimatedTimes = [];
         this._timerChildProxyFactory = timerChildProxyFactory ?? {
             new: () => {
-                return TimerChildProxy(Gio.DBus.system,
+                return new TimerChildProxy(Gio.DBus.system,
                     'org.freedesktop.MalcontentTimer1',
                     '/org/freedesktop/MalcontentTimer1',
                     (proxy, error) => {